package com.smart.cosstarter.annotation;

import com.qcloud.cos.model.CannedAccessControlList;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Author: jj
 * @Date: 2019/8/7 13:25
 * @Version 1.0
 */
@Documented
@Target({ElementType.METHOD})
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface CreateBucket {
	@AliasFor("value")
	String bucketName() default "";

	@AliasFor("bucketName")
	String value() default "";

	CannedAccessControlList bucketACL() default CannedAccessControlList.PublicReadWrite;
}
